﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using ColdSun.Commons.Configs;

namespace ColdSun.BankManagements
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DateTime expirationDate = new DateTime(2014, 03, 01);
            double money = 21202000000;
            //MessageBox.Show(ColdSun.Commons.Utilities.ChangeMoneyToText(money));
            if (DateTime.Now > expirationDate)
            {
                MessageBox.Show("Application is expired. Please contact to Anh Tho to extend the expiration date!", "Notification");
                Application.Exit();
            }
            else
            {
                if (CommonConfigs.IsDebugMode)
                {
                    Application.Run(new FrmMain());
                }
                else
                {
                    Application.Run(new FrmLogin());
                }
            }
            
        }
    }
}
